export class Dog {
    name: string;
    constructor(theName: string) {
        this.name = theName;
    }

    eat() {
        console.log(`${this.name}：吃狗粮。`);
    }
}